﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using Entity;

namespace BUL
{
    class PermissionBul
    {
        private  PermisstionDAL db = new PermisstionDAL();
        #region[Permission_GetById]
        public  List<Permisstion> Permisstion_GetById(string Id)
        {
            return db.Permisstion_GetById(Id);
        }
        #endregion
        #region[Permission_GetByUserId]
        public  List<Permisstion> Permisstion_GetByUserId(string UserId)
        {
            return db.Permisstion_GetByUserId(UserId);
        }
        #endregion
        #region[Permission_GetByTop]
        public  List<Permisstion> Permisstion_GetByTop(string Top, string Where, string Order)
        {
            return db.Permisstion_GetByTop(Top, Where, Order);
        }
        #endregion
        #region[Permisstion_GetByAll]
        public  List<Permisstion> Permisstion_GetByAll()
        {
            return db.Permisstion_GetByAll();
        }
        #endregion
        #region[Permisstion_Paging]
        public  List<Permisstion> Permisstion_Paging(string CurentPage, string PageSize)
        {
            return db.Permisstion_Paging(CurentPage, PageSize);
        }
        #endregion
        #region[Permisstion_Insert]
        public  bool Permisstion_Insert(Permisstion data)
        {
            return db.Permisstion_Insert(data);
        }
        #endregion
        #region[Permisstion_Update]
        public  bool Permisstion_Update(Permisstion data)
        {
            return db.Permisstion_Update(data);
        }
        #endregion
        #region[Permission_Delete]
        public  bool Permisstion_Delete(string Id)
        {
            return db.Permisstion_Delete(Id);
        }
        #endregion
    }
}
